package com.yourvote.dao;

import javax.persistence.EntityManager;

/**
 * Created by IntelliJ IDEA.
 * User: pavlo.fedyna
 * Date: 9/3/12
 * Time: 5:13 PM
 * To change this template use File | Settings | File Templates.
 */
public enum Dao {
    INSTANCE;

    public EntityManager getEm() {
        return em;
    }

    public void setEm(EntityManager em) {
        this.em = em;
    }

    private EntityManager em = EMFService.get().createEntityManager();

}
